package com.swpu.eduservice.Client;

import com.swpu.eduservice.Client.Impl.OrderClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 功能描述：
 *
 * @Author: ygq
 * @Date: 2021/10/31 17:11
 */
@FeignClient(name = "service-order",fallback = OrderClientImpl.class)
@Component
public interface OrderClient {
    //查询订单信息
    @GetMapping("/eduorder/paylog/isBuyCourse/{memberid}/{id}")
    public boolean isBuyCourse(@PathVariable("memberid") String memberid, @PathVariable("id") String id);
}
